home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 35
/
035.d81
/
time zone
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
188 lines
10 :
20 :
30 ifx=0thenx=1:gosub2000:load"time zone.lnk",8,1
40 ifx=1thenx=2:load"text.3.o",8,1
50 ifx=2thenx=3:load"unpacker",8,1
60 :
65 poke249,224:poke250,204
66 poke251,0:poke252,64
67 :
70 gosub240
80 gosub260
81 poke828,0:poke829,39:poke830,0:poke831,24
82 poke255,2:poke253,0:poke254,0:sys51462:rem title
83 sys49161,"[204][207][193][196][211][212][193][210] presents:",4,0,0
84 sys49161,"([195]) 1987",2,23,1
85 sys49161,"[195]64 version by [193]lan [199]ardner",7,24,0
86 sys49161,"[208][210][197][211][211] [193] [203][197][217]",24,23,0:sys51459:ag=3.4
87 poke828,0:poke829,39
88 poke830,0:poke831,24
90 :
180 :
185 poke198,0:wait198,1:poke198,0
190 ag=3.4:dim uct$(25),ct$(25),lt$(25)
200 gosub240:gosub260
201 ag=3.4:gosub1130
210 sys49161,"[213]se [195][213][210][211][207][210] keys and [210][197][212][213][210][206] to select a",1,1,1
211 sys49161,"time zone, or press '[209]' to [209][213][201][212].",1,2,1
220 gosub440
230 :
240 poke255,0:poke253,0:poke254,0:sys51462:return
250 :
260 poke255,1:poke253,0:poke254,6:sys51462:return
390 :
400 sys49161,"[208]acific [205]ountain [195]entral [197]astern",1,5,0
401 :
410 :
420 :
421 :
430 :
440 b=0:es$=chr$(81):rt$=chr$(29):lf$=chr$(157):cr$=chr$(13)
441 be$=chr$(7):up$=chr$(145):dn$=chr$(17):gosub590
450 poke198,0:wait198,1:getk$
460 ifk$=up$thenk$=rt$
470 ifk$=dn$thenk$=lf$
480 ifk$="[208]"ork$="p"thenb=0:gosub590:goto450
490 ifk$="[205]"ork$="m"thenb=1:gosub590:goto450
500 ifk$="[195]"ork$="c"thenb=2:gosub590:goto450
510 ifk$="[197]"ork$="e"thenb=3:gosub590:goto450
520 if(k$<>es$andk$<>"[209]")thenifk$<>rt$thenifk$<>lf$thenifk$<>cr$then450
530 ifk$=rt$thenb=b+1-(4*abs(b=3)):gosub590
540 ifk$=lf$thenb=b-1+(4*abs(b=0)):gosub590
550 ifk$=es$ork$="[209]"thengosub610
560 ifk$=cr$thenf=z(b):gosub670
570 goto450
580 :
590 :
591 mo=1:ifb=0thenmo=0
592 sys49161,"[208]acific",2,4,mo
593 mo=1:ifb=1thenmo=0
594 sys49161,"[205]ountain",10,4,mo
595 mo=1:ifb=2thenmo=0
596 sys49161,"[195]entral",20,4,mo
597 mo=1:ifb=3thenmo=0
598 sys49161,"[197]astern",28,4,mo
599 return
600 :
610 poke255,3:poke254,10:poke253,10:sys51462:ag=3.4
620 sys49161,"[209]uit for sure?",15,11,0
622 sys49161,"([217] or [206])",18,12,0
625 poke198,0:wait198,1:getk$
630 ifk$="[217]"ork$="y"then1550
640 ifk$<>"[206]"thenifk$<>"n"then625
650 gosub260:return
660 :
670 poke255,3:poke254,10:poke253,10:sys51462:ag=3.4
680 sys49161,"<[211]>tandard or <[196]>aylight",10,11,0
681 sys49161," [211]avings [212]ime?",14,12,0
690 poke198,0:wait198,1:getch$
700 ifch$=es$then650
710 ifch$="[211]"orch$="s"thenb1=1
720 ifch$="[196]"orch$="d"thenb1=2:f=f+1
730 ifb1<>1andb1<>2then670
740 gosub770
750 run190
760 :
770 gosub240
780 sys49161,"[213]niversal time coordinated ([199][205][212])",2,2,1:ag=3.34
781 sys49161,"to "+tn$(b,b1)+" chart",2,3,1
800 sys49161,"[215][207][210][203][201][206][199]....",12,12,1
810 forn=0to23
820 uct=n
830 lt=uct+f
840 iflt<0thenlt=lt+24
850 iflt>23thenlt=abs(lt-24)
860 gosub1240
870 uct$(n)=mid$(str$(uct),2)+"00 "
880 iflen(uct$(n))<5thenuct$(n)="0"+uct$(n)
890 lt$(n)=mid$(str$(lt),2)+"00"
900 iflen(lt$(n))<4thenlt$(n)="0"+lt$(n)
910 iflen(ct$(n))<5thenct$(n)=" "+ct$(n)
920 nextn
930 sys49161,"[213][212][195] "+t$(b,b1),4,5,1
932 sys49161,"--- ---",4,6,1
940 forn=0to12
950 sys49161,uct$(n)+" ------- "+lt$(n)+" "+ct$(n),3,n+7,1
960 next
970 sys49161,"[208][210][197][211][211] [193] [203][197][217]",13,23,1:poke198,0:wait198,1:geta$
980 gosub240
990 sys49161,"[213]niversal time coordinated ([199][205][212])",2,2,1:ag=3.34
991 sys49161,"to "+tn$(b,b1)+" chart",2,3,1
1010 sys49161,"[213][212][195] "+t$(b,b1),4,5,1
1011 sys49161,"--- ---",4,6,1
1020 forn=12to23
1030 sys49161,uct$(n)+" ------- "+lt$(n)+" "+ct$(n),3,n+7-12,1
1040 next
1050 sys49161,"[212][201][205][197] [196][201][198][198][197][210][197][206][195][197]: "+str$(f)+" [200][207][213][210][211].",3,20,1
1060 sys49161,"[208][210][197][211][211] [193] [203][197][217]",13,23,1:poke198,0:wait198,1:getk$
1061 poke255,3:poke253,10:poke254,10:sys51462:ag=3.34
1080 sys49161,"[196]o you want a",15,11,0
1082 sys49161,"[208][210][201][206][212][207][213][212] ([217]/[206])?",14,12,0
1085 poke198,0:wait198,1:getk$:ifk$<>"y"andk$<>"n"andk$<>"[217]"andk$<>"[206]"then1085
1090 ifk$="[217]"ork$="y"thengosub1310:k$="[206]"
1100 ifk$<>"[206]"thenifk$<>"n"thenprintbe$;:goto1070
1110 return
1120 :
1130 tn$(0,1)="[208]acific [211]tandard [212]ime":t$(0,1)="[208][211][212]"
1140 tn$(0,2)="[208]acific [196]aylight [212]ime":t$(0,2)="[208][196][212]"
1150 tn$(1,1)="[205]ountain [211]tandard [212]ime":t$(1,1)="[205][211][212]"
1160 tn$(1,2)="[205]ountain [196]aylight [212]ime":t$(1,2)="[205][196][212]"
1170 tn$(2,1)="[195]entral [211]tandard [212]ime":t$(2,1)="[195][211][212]"
1180 tn$(2,2)="[195]entral [196]aylight [212]ime":t$(2,2)="[195][196][212]"
1190 tn$(3,1)="[197]astern [211]tandard [212]ime":t$(3,1)="[197][211][212]"
1200 tn$(3,2)="[197]astern [196]aylight [212]ime":t$(3,2)="[197][196][212]"
1210 z(0)=-8:z(1)=-7:z(2)=-6:z(3)=-5
1220 return
1230 :
1240 ct=lt:ap$="[193][205]"
1250 ifct>12thenct=ct-12:ap$="[208][205]"
1260 ifct=12thenap$="[206][207][207][206]"
1270 ifct=0thenct=12:ap$="[205][201][196][206][201][199][200][212]"
1280 ct$(n)=str$(ct):iflen(ct$(n))<3thenct$(n)=ct$(n)+" "
1285 ct$(n)=ct$(n)+" "+ap$
1290 return
1300 :
1310 poke255,3:poke253,10:poke254,10:sys51462:ag=3.34
1320 sys49161,"[212]urn on your printer",12,11,0
1322 sys49161,"and press [210][197][212][213][210][206]",14,12,0
1330 sys49161,"[208]ress '[209]' to cancel.",12,13,0
1340 poke198,0:wait198,1:getk$
1350 ifk$=es$ork$="[209]"thenreturn
1360 ifk$<>cr$then1310
1370 open15,4,15:close15:ifst=0then1380
1372 poke255,3:poke253,10:poke254,10:sys51462:ag=3.34
1374 sys49161,"[208][210][201][206][212][197][210] [206][207][212] [207][206]-[204][201][206][197]",12,12,0:fordl=1to1000:next:goto1310
1380 open4,4,7:cmd4
1382 sp$=" "
1390 print
1400 print" [213]niversal [212]ime [195]oordinated ([199][205][212]) to"
1401 print" "tn$(b,b1)" chart. "
1402 print" -------------------------------"
1410 print" [213][212][195] "t$(b,b1)" [213][212][195]";
1411 print" "t$(b,b1)" "
1420 print" --- --- --- ---"
1421 print" "
1430 forn=0to12
1440 print" "uct$(n)" "lt$(n)" "ct$(n);
1441 printright$(sp$,abs(12-len(ct$(n))));
1450 print" ";
1460 ifn=12thenprint"[212]ime difference: "f" hours.";:goto1490
1470 printuct$(n+12)" "lt$(n+12)" "ct$(n+12);
1480 printright$(sp$,abs(8-len(ct$(n+12))));
1490 print" "
1500 next
1510 :
1520 print#4:close4
1530 return
1540 :
1550 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15:print"[147]"
1552 print"[147]";:ifer<>63thensys51459:end
1554 open15,8,15,"i0":close15
1556 sys51459
1560 load"hello connect",8
1570 end
2000 :
2002 poke53281,0:poke53280,5
2004 print"[147] [206]ow entering the [212]ime [218]one..."
2006 return